Uses of Class
edu.uky.ai.tic.state.Player
| Package | Description |
|---|---|
| edu.uky.ai.tic |
This package provides the game of Tic Tac Toe and the tools for building AI
players.
|
| edu.uky.ai.tic.state |
This package contains the model of the state of a game of Tic Tac Toe along
with a representation of all the next available moves and how they change
the game's state.
|
-
Uses of Player in edu.uky.ai.tic
Fields in edu.uky.ai.tic declared as Player Modifier and Type Field Description PlayerGame. winnerThe winning player -
Uses of Player in edu.uky.ai.tic.state
Fields in edu.uky.ai.tic.state declared as Player Modifier and Type Field Description PlayerMove. playerThe player making the moveMethods in edu.uky.ai.tic.state that return Player Modifier and Type Method Description PlayerState. getCurrentPlayer()Returns the player whose turn it is to move next.PlayerState. getSquare(int row, int column)Returns the mark at the given row and column of the grid.PlayerState. getWinner()Returns the winner, if one has been determined.static PlayerPlayer. valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Player[]Player. values()Returns an array containing the constants of this enum type, in the order they are declared.Constructors in edu.uky.ai.tic.state with parameters of type Player Constructor Description Move(Player player, int row, int column)Constructs a move object.